<script type="text/javascript">
	//List Configuration
	$j("#list_role").jqGrid({
		url:'role/list',
		datatype:'json',
		mtype:'POST',
		colNames:[
		  		'Nombre', 
		  		'Descripción' 
		  		],
		colModel:[
				  {
					  name:'name',
					  index:'name',
					  width:20,
					  editable: false
				  },
				  {
					  name:'description', 
					  index:'description', 
					  width:80, 
					  editable: false
				   }
		],
		pager :'#gridpager_role',
		loadtext: 'Cargando Roles ...',
		rowNum : 10,
		rowList :[10],
		sortname :'name',
		sortorder :'asc',
		autowidth :true,
		viewrecords :true,
		onSelectRow :function(id){},
		editurl:'',
		scrollOffset:0
		//caption:'Usuarios'
	});

	$j("#list_role").setGridHeight(220);
	
	//Form editing
	$j("#list_role").jqGrid(
			'navGrid',
			'#gridpager_role',
			{
				edit:false,
				add:false,
				del:false,
				search:true
			},
			{
				width: 400,
				height: 400,
				closeAfterEdit: true
			},
			{
				sopt:['eq','bw','ew','cn']
			}
	);
</script>

